/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package common;

import java.io.File;
import java.io.Serializable;

/**
 *
 * @author Mateusz
 */
public class Envelope implements Serializable {

    private int code;
    private String message;

    public Envelope(int code) {
        this.code = code;
        this.message = "";
//        this.messagesdgf = "";
    }

    public Envelope(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public Envelope(int code, File file) {
        this.code = code;
        this.message = file.getName();
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    @Override
    public String toString() {
        return "Envelope{" + "code=" + code + "message=" + message + '}';
    }
    
}
